import { getTranslation } from "../../locales/translations";
import CloudStorageImgUrl from "./components/assets/cloud-storage.webp";
import SimImgUrl from "./components/assets/sim.webp";
import AiSentryImgUrl from "./components/assets/ai-sentry.webp";
import AiScenariosImgUrl from "./components/assets/ai-scenarios.webp";

function getFeatureListByLanguage({ lang }) {
  const t = (key) => getTranslation(key, lang);
  return [
    {
      title: t("appAndServices.aiSentinel"),
      description: t("appAndServices.aiSentinelDescription"),
      features: [
        { title: t("appAndServices.behaviorRecognition"), description: t("appAndServices.behaviorRecognitionDesc") },
        { title: t("appAndServices.timeEfficiency"), description: t("appAndServices.timeEfficiencyDesc") },
      ],
      tips: "*" + t("appAndServices.tips"),
      imgUrl: AiSentryImgUrl,
    },
    {
      title: t("appAndServices.aiScenarios"), // 中文t函数
      description: t("appAndServices.aiScenariosDescription"), // 中文描述t函数
      features: [
        {
          title: t("appAndServices.smartSceneDetection"), // 特性标题t函数
          description: t("appAndServices.smartSceneDetectionDesc"), // 特性描述t函数
        },
        {
          title: t("appAndServices.easySceneSwitch"), // 特性标题t函数
          description: t("appAndServices.easySceneSwitchDesc"), // 特性描述t函数
        },
      ],
      tips: "*" + t("appAndServices.tips"),
      imgUrl: AiScenariosImgUrl,
    },
    {
      title: t("appAndServices.fourGPlan"),
      description: t("appAndServices.fourGPlanDescription"),
      features: [
        { title: t("appAndServices.flexiblePackages"), description: t("appAndServices.flexiblePackagesDesc") },
        { title: t("appAndServices.trialData"), description: t("appAndServices.trialDataDesc") },
        { title: t("appAndServices.dataExhausted"), description: t("appAndServices.dataExhaustedDesc") },
      ],
      tips: "*" + t("appAndServices.tips"),
      imgUrl: SimImgUrl,
    },
    {
      title: t("appAndServices.cloudStorage"), // 中文保持t函数
      description: t("appAndServices.cloudStorageDescription"), // 新增描述的t键（如需）
      features: [
        {
          title: t("appAndServices.highSpeedTransmission"),
          description: t("appAndServices.highSpeedTransmissionDesc"),
        },
        {
          title: t("appAndServices.smartDataProtection"),
          description: t("appAndServices.smartDataProtectionDesc"),
        },
        {
          title: t("appAndServices.convenientSharing"),
          description: t("appAndServices.convenientSharingDesc"),
        },
        {
          title: t("appAndServices.strongPrivacyControl"),
          description: t("appAndServices.strongPrivacyControlDesc"),
        },
      ],
      tips: "*" + t("appAndServices.tips"),
      imgUrl: CloudStorageImgUrl,
    },
  ];
}
export { getFeatureListByLanguage };
